From: | Michael_Sage |
Date: | 17 Aug 99 at 18:41:38 |
Subject: | Re: Re: Structure Arrays |
From: Michael_Sage@May-Co.com
The C++ FAQ Lite has:
delete[] ptr;
Allan Odgaard <Duff@DIKU.DK> on 08/17/99 02:21:06 PM
Please respond to amiga-c@onelist.com
To: Amiga-C@OneList.Com
cc: (bcc: Michael Sage/GLDC/MAYCO)
Subject: iga-c] Re: Structure A
From: Allan Odgaard <Duff@DIKU.DK>
On 17-Aug-99, andrewmarkwell@ukonline.co.uk wrote:
> delete ptr[];
I'm almost certain that it's actually
delete [] ptr;
> to do that. Some compilers require you to have the size in the subset
> brackets though.
Are you sure about this? Most compilers tag the memory with its size, if they
cannot calculate it during deletion - most also tag it when they can :-(
Regards Allan